package com.sl.spring.intergration.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sl.spring.intergration.servcie.IUserService;
import com.sl.spring.intergration.vo.User;

@RestController
public class MyBatisCURDController {

	@Autowired
	private IUserService userService;
	
	@RequestMapping("/insert")
	public void saveUser(){
		User u = new User();
		u.setUserName("sltest");
		u.setHeadPortraitId(1);
		userService.save(u);
	}
}
